package com.notepad.util;

public class Constant {
	//FileConstant
	public final static String SAVE_LOCK_INFO_FILE = "userLockSetting";
	public final static String Note_Pad_Flag = "noteflag";
	public final static String First_peference = "first_setup";
	public static String LOCK_PASSWORD = "";
    public static Boolean ALLOW_LOCK = false;
	public static String USER_SETTING_FILE = "saveNoteUserData";
	public final static String ALARM_ACTION = "com.micronotepad.alarm.action";
	
	
	
	//DBConstant
	public static final String DB_Name = "notepad.db";
	public static final int DB_version = 1 ;
	
	public static class TABLE{
		public static final String NOTE = "notepad";
		
	}
	
	public static class COLUMNS_NOTE{
		public static final String ID = "id";
		public static final String TITLE = "title";
		public static final String TIME = "time";
		public static final String CONTENT = "content";
		
	}
	
	
	public static StringBuffer CREATE_NOTE_TABLE = new StringBuffer();
	static {
		CREATE_NOTE_TABLE.append("CREATE TABLE  ").append(TABLE.NOTE).append(" (")
		.append(COLUMNS_NOTE.ID).append(" integer primary key AUTOINCREMENT, ")
		.append(COLUMNS_NOTE.TITLE).append(" text, ")
		.append(COLUMNS_NOTE.TIME).append(" text,")
		.append(COLUMNS_NOTE.CONTENT).append(" text ")
		.append(" );");
	}
}
